package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 *
 */
//语音
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private static final long serialVersionUID = 127533225448467689L;

    private ObjectId id; //主键id
    private Long userId; //发送者id
    private Long listenId;// 接收者id
    private String soundUrl; //声音文件，URL

    private String date; //接收时间
    private Integer hasRead; //是否已读  0 未读 1 已读
}

